Fix build on powerpc*#985
Conversation
Tested on FreeBSD/powerpc64le.
Tested on FreeBSD/powerpc64le.
|
Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset. In case there are security findings, they will be communicated to you as a comment inside the PR. Hope you’ll enjoy using Jit. Questions? Comments? Want to learn more? Get in touch with us. |
|
|
|
@pkubaj Thank you for the contribution. First, please sign the CLA. Second, did you confirm that this addition would enable SIMD optimizations on PPC? |
Two simple patches to fix powerpc* builds.
Mark if applicable
Note
Low Risk
Small, build-target-specific wiring with no API or behavior change on x86_64/AArch64; PPC continues to use scalar distance paths guarded by existing arch macros.
Overview
Fixes powerpc* compilation and runtime CPU feature detection in VecSim by treating PPC like the existing x86_64 and AArch64 paths.
space_includes.hnow includescpuinfo_ppc.hwhenCPU_FEATURES_ARCH_PPCis defined.getCpuOptimizationFeaturesinspaces.hselectscpu_features::PPCFeaturesandGetPPCInfoon PPC instead of falling through to the x86 types andGetX86Info.Reviewed by Cursor Bugbot for commit f033912. Bugbot is set up for automated code reviews on this repo. Configure here.